/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1schoolclassdemo;

/**
 *
 * @author apple
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Student stu1=new Student("stu1", 12, 88);
        Student stu2=new Student("stu2", 59, 85);
        Student stu3=new Student("stu3", 13, 85);
        Student stu4=new Student("stu4", 34, 92);
        Student stu5=new Student("stu5", 14, 86);
        
        SchoolClass rg1=new SchoolClass("RuanGong1");
        rg1.add(stu1);
        rg1.add(stu2);
        rg1.add(stu3);
        rg1.add(stu4);
        rg1.add(stu5);
        
        System.out.println(rg1.size());
        Student stu;
        stu=rg1.getbyNum(13);
        //stu.show();
        rg1.sortByNum();
        rg1.show();
        
        rg1.sortByJava();
        rg1.show();
        
    }
    
}
